import { configureStore } from '@reduxjs/toolkit'
import countReducer from './count'
import todoListReducer, { TodoItemType } from './totoList'

export default configureStore({
  reducer: {
    count: countReducer,

    todoList: todoListReducer,
    // 扩展其他模块
  },
})

export type StateType = {
  count: number
  todoLis: TodoItemType[]
}
